﻿using EONFULLSIN2.Models.Dto.Device;
using EONFULLSIN2.Models.Enum.SensorPoint;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EONFULLSIN2.Services.Device.JuYing
{
    /// <summary>
    /// 聚英Modbus服务接口，务必注册成单例
    /// </summary>
    public interface IJuYingModbusService : IModbusBaseServices
    {
        /// <summary>
        /// 获取所有传感器数据
        /// </summary>
        /// <returns></returns>
        Task<List<SensorItemDto>> GetSensorDataAsync();

        /// <summary>
        /// 获取特定的传感器数据
        /// </summary>
        /// <param name="eTempPointEnum"></param>
        /// <returns></returns>
        Task<double> GetSensorDataByIndexAsync(eTempPointEnum eTempPointEnum);
    }
}
